<%@ page import="com.example.EL.Student" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/24
  Time: 22:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    List<Student> studentList = new ArrayList<Student>();
    for (int i = 1; i <= 10; i++) {
        studentList.add(new Student(i,"username"+i ,"pass"+i,18+i,"phone"+i));
    }
    request.setAttribute("stus", studentList);
%>
<%--
${initParam.url}
<hr>
<c:if test="${12==12}">
    <h2>12 eq 12</h2>
</c:if>
<table align="center" border="1px" cellspacing="0">
<c:forEach begin="1" end="10" var="i">
    <tr>
        <td>i</td>
        <td>s.step</td>

    </tr>
</c:forEach>
    --%>
    <hr>
    <c:forEach items="${requestScope.stus}" begin="0" end="10" var="stu" varStatus="s">
        ${s.index}
        ${s.count}
        ${s.current}
        ${s.first}
        <br>
    </c:forEach>
</table>
</body>
</html>
